<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>兴趣交友推荐 - 发现志同道合的朋友</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #7209b7;
            --secondary: #3f37c9;
            --accent: #4895ef;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --success: #4cc9f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f5f7fa;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 0.8rem 1rem;
        }
        
        .navbar-brand {
            color: var(--primary);
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1.4rem;
        }
        
        .nav-link {
            color: var(--dark);
            font-weight: 500;
            margin: 0 5px;
            transition: var(--transition);
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        .main-container {
            padding: 2rem 0;
        }
        
        .section-header {
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }
        
        .section-desc {
            color: var(--gray);
            max-width: 800px;
        }
        
        .filter-bar {
            background-color: white;
            border-radius: 10px;
            padding: 1rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow);
        }
        
        .filter-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .filter-tab {
            padding: 0.5rem 1.2rem;
            border-radius: 20px;
            background-color: var(--light);
            border: none;
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .filter-tab.active {
            background-color: var(--primary);
            color: white;
        }
        
        .filter-tab:hover:not(.active) {
            background-color: var(--light-gray);
        }
        
        .card {
            border: none;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            margin-bottom: 1.5rem;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .card-body {
            padding: 1.2rem;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 1rem;
        }
        
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--light-gray);
        }
        
        .user-name {
            font-weight: 600;
            font-size: 1rem;
        }
        
        .user-meta {
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .content-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            transition: var(--transition);
        }
        
        .card:hover .content-title {
            color: var(--primary);
        }
        
        .content-desc {
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 1rem;
        }
        
        .tag {
            background-color: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        
        .stats {
            display: flex;
            align-items: center;
            gap: 1.2rem;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .actions {
            display: flex;
            gap: 0.5rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--gray);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            transition: var(--transition);
            padding: 5px 10px;
            border-radius: 4px;
        }
        
        .action-btn:hover {
            background-color: var(--light);
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: #e63946;
        }
        
        .action-btn.saved {
            color: #ffb703;
        }
        
        .connect-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 6px 14px;
            font-weight: 500;
            font-size: 0.9rem;
            transition: var(--transition);
        }
        
        .connect-btn:hover {
            background-color: var(--secondary);
        }
        
        .image-container {
            width: 100%;
            position: relative;
            overflow: hidden;
        }
        
        .single-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .card:hover .single-image {
            transform: scale(1.05);
        }
        
        .multi-image {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 5px;
            height: 180px;
        }
        
        .multi-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .card:hover .multi-image img {
            transform: scale(1.05);
        }
        
        .image-count {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        /* 网格布局特殊样式 */
        .grid-layout .card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .grid-layout .card-body {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .grid-layout .stats-actions {
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        /* 列表布局特殊样式 */
        .list-layout .card {
            display: flex;
            flex-direction: row;
            height: 220px;
        }
        
        .list-layout .image-container {
            width: 35%;
            height: 100%;
        }
        
        .list-layout .single-image,
        .list-layout .multi-image {
            height: 100%;
        }
        
        .list-layout .card-body {
            width: 65%;
            display: flex;
            flex-direction: column;
        }
        
        .list-layout .stats-actions {
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        /* 紧凑布局特殊样式 */
        .compact-layout .card {
            display: flex;
            flex-direction: row;
            height: 140px;
        }
        
        .compact-layout .image-container {
            width: 25%;
            height: 100%;
            display: none; /* 默认不显示图片 */
        }
        
        .compact-layout .has-image .image-container {
            display: block; /* 有图片的显示图片 */
        }
        
        .compact-layout .has-image .card-body {
            width: 75%;
        }
        
        .compact-layout .no-image .card-body {
            width: 100%;
        }
        
        .compact-layout .single-image,
        .compact-layout .multi-image {
            height: 100%;
        }
        
        .compact-layout .card-body {
            display: flex;
            flex-direction: column;
        }
        
        .compact-layout .content-desc {
            display: none; /* 紧凑布局不显示描述 */
        }
        
        .compact-layout .stats-actions {
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .layout-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 1.5rem;
        }
        
        .layout-btn {
            background-color: white;
            border: 1px solid var(--light-gray);
            border-radius: 6px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .layout-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .layout-btn:hover:not(.active) {
            background-color: var(--light);
        }
        
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            background-color: white;
            border-radius: 10px;
            box-shadow: var(--shadow);
            margin-bottom: 2rem;
        }
        
        .empty-icon {
            font-size: 3rem;
            color: var(--light-gray);
            margin-bottom: 1rem;
        }
        
        .empty-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        .empty-desc {
            color: var(--gray);
            margin-bottom: 1.5rem;
        }
        
        .pagination {
            margin-top: 2rem;
            justify-content: center;
        }
        
        .page-item .page-link {
            color: var(--primary);
            border-color: var(--light-gray);
            margin: 0 3px;
            border-radius: 6px;
        }
        
        .page-item.active .page-link {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        footer {
            background-color: var(--dark);
            color: white;
            padding: 3rem 0 2rem;
            margin-top: 3rem;
        }
        
        .footer-col {
            margin-bottom: 2rem;
        }
        
        .footer-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
        }
        
        .footer-links li {
            margin-bottom: 0.5rem;
        }
        
        .footer-links a {
            color: var(--light-gray);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: white;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .social-links a {
            color: white;
            background-color: rgba(255, 255, 255, 0.1);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
        
        .social-links a:hover {
            background-color: var(--primary);
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--light-gray);
            font-size: 0.9rem;
        }
        
        @media (max-width: 992px) {
            .list-layout .card {
                height: auto;
                flex-direction: column;
            }
            
            .list-layout .image-container,
            .list-layout .card-body {
                width: 100%;
            }
            
            .list-layout .single-image,
            .list-layout .multi-image {
                height: 180px;
            }
        }
        
        @media (max-width: 768px) {
            .section-title {
                font-size: 1.5rem;
            }
            
            .filter-tab {
                padding: 0.4rem 0.8rem;
                font-size: 0.85rem;
            }
            
            .compact-layout .card {
                height: auto;
                flex-direction: column;
            }
            
            .compact-layout .image-container {
                width: 100%;
                display: block;
            }
            
            .compact-layout .has-image .card-body,
            .compact-layout .no-image .card-body {
                width: 100%;
            }
            
            .stats {
                gap: 0.8rem;
                flex-wrap: wrap;
            }
            
            .actions {
                gap: 0.3rem;
            }
            
            .action-btn {
                padding: 3px 6px;
                font-size: 0.8rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-users"></i>
                <span>友趣</span>
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">交友推荐</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">兴趣小组</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">活动中心</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">消息</a>
                    </li>
                </ul>
                
                <div class="d-flex align-items-center gap-3">
                    <div class="dropdown">
                        <button class="btn btn-secondary dropdown-toggle rounded-circle" type="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/id/64/40/40" alt="用户头像" width="36" height="36" class="rounded-circle">
                        </button>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#">个人主页</a></li>
                            <li><a class="dropdown-item" href="#">我的好友</a></li>
                            <li><a class="dropdown-item" href="#">设置</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#">退出登录</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="container main-container">
        <div class="section-header">
            <h1 class="section-title">为你推荐兴趣相投的朋友</h1>
            <p class="section-desc">根据你的兴趣爱好，我们为你找到了这些志同道合的朋友。他们也对相同的领域充满热情，快去认识一下吧！</p>
        </div>
        
        <!-- 筛选栏 -->
        <div class="filter-bar">
            <div class="filter-tabs">
                <button class="filter-tab active">全部推荐</button>
                <button class="filter-tab">音乐爱好者</button>
                <button class="filter-tab">电影迷</button>
                <button class="filter-tab">读书俱乐部</button>
                <button class="filter-tab">户外运动</button>
                <button class="filter-tab">美食探索</button>
                <button class="filter-tab">摄影爱好者</button>
                <button class="filter-tab">游戏玩家</button>
            </div>
            
            <div class="d-flex flex-wrap justify-content-between align-items-center gap-3">
                <div class="d-flex align-items-center gap-2">
                    <span class="text-muted">排序方式:</span>
                    <select class="form-select form-select-sm" style="width: auto;">
                        <option selected>匹配度优先</option>
                        <option>最新加入</option>
                        <option>活跃度高</option>
                        <option>共同兴趣多</option>
                    </select>
                </div>
                
                <div class="layout-controls">
                    <span class="text-muted d-none d-md-inline">布局:</span>
                    <button class="layout-btn active" id="gridLayout" title="网格布局">
                        <i class="fas fa-th"></i>
                    </button>
                    <button class="layout-btn" id="listLayout" title="列表布局">
                        <i class="fas fa-list"></i>
                    </button>
                    <button class="layout-btn" id="compactLayout" title="紧凑布局">
                        <i class="fas fa-th-list"></i>
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 交友推荐内容区 -->
        <div class="recommendations grid-layout" id="recommendationsContainer">
            <!-- 1. 多图内容 -->
            <div class="col-lg-4 col-md-6 col-sm-12">
                <div class="card has-image">
                    <div class="image-container">
                        <div class="multi-image">
                            <img src="https://picsum.photos/id/1060/300/300" alt="旅行照片1" class="img-fluid">
                            <img src="https://picsum.photos/id/1061/300/300" alt="旅行照片2" class="img-fluid">
                            <img src="https://picsum.photos/id/1063/300/300" alt="旅行照片3" class="img-fluid">
                            <img src="https://picsum.photos/id/1064/300/300" alt="旅行照片4" class="img-fluid">
                        </div>
                        <div class="image-count">4</div>
                    </div>
                    <div class="card-body">
                        <div class="user-info">
                            <img src="https://picsum.photos/id/1012/100/100" alt="用户头像" class="avatar">
                            <div>
                                <div class="user-name">李明 - 旅行摄影师</div>
                                <div class="user-meta">匹配度 94% · 3个共同兴趣</div>
                            </div>
                        </div>
                        
                        <h3 class="content-title">我的云南自驾游摄影集分享</h3>
                        <p class="content-desc">上个月在云南的自驾游太棒了！特别是大理的日出和丽江的古城夜景，简直美不胜收。整理了一组照片，希望能找到同样喜欢旅行摄影的朋友一起交流。</p>
                        
                        <div class="tags">
                            <span class="tag">旅行</span>
                            <span class="tag">摄影</span>
                            <span class="tag">自驾游</span>
                            <span class="tag">风光</span>
                        </div>
                        
                        <div class="stats-actions">
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i> 2.4k
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i> 132
                                </div>
                            </div>
                            
                            <div class="d-flex gap-2">
                                <button class="action-btn" id="like1">
                                    <i class="far fa-heart"></i> 342
                                </button>
                                <button class="action-btn" id="save1">
                                    <i class="far fa-bookmark"></i> 收藏
                                </button>
                                <button class="connect-btn">
                                    <i class="fas fa-user-plus"></i> 加好友
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 2. 单图内容 -->
            <div class="col-lg-4 col-md-6 col-sm-12">
                <div class="card has-image">
                    <div class="image-container">
                        <img src="https://picsum.photos/id/292/600/400" alt="烘焙作品" class="single-image img-fluid">
                    </div>
                    <div class="card-body">
                        <div class="user-info">
                            <img src="https://picsum.photos/id/1027/100/100" alt="用户头像" class="avatar">
                            <div>
                                <div class="user-name">张小厨 - 烘焙爱好者</div>
                                <div class="user-meta">匹配度 89% · 2个共同兴趣</div>
                            </div>
                        </div>
                        
                        <h3 class="content-title">周末尝试的法式马卡龙配方分享</h3>
                        <p class="content-desc">研究了很久的马卡龙配方终于成功了！分享一下我的制作心得和配方比例，希望能找到同样喜欢烘焙的朋友一起交流技巧，共同进步。</p>
                        
                        <div class="tags">
                            <span class="tag">烘焙</span>
                            <span class="tag">美食</span>
                            <span class="tag">甜点</span>
                        </div>
                        
                        <div class="stats-actions">
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i> 1.8k
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i> 97
                                </div>
                            </div>
                            
                            <div class="d-flex gap-2">
                                <button class="action-btn" id="like2">
                                    <i class="far fa-heart"></i> 256
                                </button>
                                <button class="action-btn" id="save2">
                                    <i class="far fa-bookmark"></i> 收藏
                                </button>
                                <button class="connect-btn">
                                    <i class="fas fa-user-plus"></i> 加好友
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 3. 无图内容 -->
            <div class="col-lg-4 col-md-6 col-sm-12">
                <div class="card no-image">
                    <div class="card-body">
                        <div class="user-info">
                            <img src="https://picsum.photos/id/1025/100/100" alt="用户头像" class="avatar">
                            <div>
                                <div class="user-name">王书虫 - 科幻小说迷</div>
                                <div class="user-meta">匹配度 91% · 4个共同兴趣</div>
                            </div>
                        </div>
                        
                        <h3 class="content-title">2023年读过的最佳科幻小说推荐</h3>
                        <p class="content-desc">作为一个科幻迷，今年读了不少佳作，整理了一份书单分享给大家。包括《三体》系列的深度解读，还有一些国外的新锐科幻作品，寻找同样喜欢科幻文学的朋友讨论交流。</p>
                        
                        <div class="tags">
                            <span class="tag">阅读</span>
                            <span class="tag">科幻</span>
                            <span class="tag">书籍推荐</span>
                            <span class="tag">文学</span>
                        </div>
                        
                        <div class="stats-actions">
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i> 3.2k
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i> 215
                                </div>
                            </div>
                            
                            <div class="d-flex gap-2">
                                <button class="action-btn" id="like3">
                                    <i class="far fa-heart"></i> 487
                                </button>
                                <button class="action-btn" id="save3">
                                    <i class="far fa-bookmark"></i> 收藏
                                </button>
                                <button class="connect-btn">
                                    <i class="fas fa-user-plus"></i> 加好友
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 4. 多图内容 -->
            <div class="col-lg-4 col-md-6 col-sm-12">
                <div class="card has-image">
                    <div class="image-container">
                        <div class="multi-image">
                            <img src="https://picsum.photos/id/1071/300/300" alt="音乐演出1" class="img-fluid">
                            <img src="https://picsum.photos/id/1073/300/300" alt="音乐演出2" class="img-fluid">
                            <img src="https://picsum.photos/id/1074/300/300" alt="音乐演出3" class="img-fluid">
                        </div>
                        <div class="image-count">3</div>
                    </div>
                    <div class="card-body">
                        <div class="user-info">
                            <img src="https://picsum.photos/id/1074/100/100" alt="用户头像" class="avatar">
                            <div>
                                <div class="user-name">刘摇滚 - 独立音乐爱好者</div>
                                <div class="user-meta">匹配度 87% · 3个共同兴趣</div>
                            </div>
                        </div>
                        
                        <h3 class="content-title">独立音乐现场摄影与感悟</h3>
                        <p class="content-desc">这个月去了三个独立音乐现场，氛围太棒了！分享一些照片和我的感受，希望能找到同样喜欢独立音乐的朋友，下次可以一起去看演出。</p>
                        
                        <div class="tags">
                            <span class="tag">音乐</span>
                            <span class="tag">独立摇滚</span>
                            <span class="tag">现场演出</span>
                            <span class="tag">音乐摄影</span>
                        </div>
                        
                        <div class="stats-actions">
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i> 1.5k
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i> 86
                                </div>
                            </div>
                            
                            <div class="d-flex gap-2">
                                <button class="action-btn" id="like4">
                                    <i class="far fa-heart"></i> 213
                                </button>
                                <button class="action-btn" id="save4">
                                    <i class="far fa-bookmark"></i> 收藏
                                </button>
                                <button class="connect-btn">
                                    <i class="fas fa-user-plus"></i> 加好友
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 5. 单图内容 -->
            <div class="col-lg-4 col-md-6 col-sm-12">
                <div class="card has-image">
                    <div class="image-container">
                        <img src="https://picsum.photos/id/1080/600/400" alt="登山照片" class="single-image img-fluid">
                    </div>
                    <div class="card-body">
                        <div class="user-info">
                            <img src="https://picsum.photos/id/1066/100/100" alt="用户头像" class="avatar">
                            <div>
                                <div class="user-name">赵登山 - 户外爱好者</div>
                                <div class="user-meta">匹配度 85% · 2个共同兴趣</div>
                            </div>
                        </div>
                        
                        <h3 class="content-title">周末泰山徒步攻略与装备分享</h3>
                        <p class="content-desc">刚完成泰山一日徒步，整理了一份详细的攻略，包括路线选择、装备清单和注意事项。寻找同样喜欢登山和户外的朋友，组队挑战更多山峰！</p>
                        
                        <div class="tags">
                            <span class="tag">户外</span>
                            <span class="tag">登山</span>
                            <span class="tag">徒步</span>
                            <span class="tag">攻略</span>
                        </div>
                        
                        <div class="stats-actions">
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i> 2.1k
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i> 143
                                </div>
                            </div>
                            
                            <div class="d-flex gap-2">
                                <button class="action-btn" id="like5">
                                    <i class="far fa-heart"></i> 326
                                </button>
                                <button class="action-btn" id="save5">
                                    <i class="far fa-bookmark"></i> 收藏
                                </button>
                                <button class="connect-btn">
                                    <i class="fas fa-user-plus"></i> 加好友
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 6. 无图内容 -->
            <div class="col-lg-4 col-md-6 col-sm-12">
                <div class="card no-image">
                    <div class="card-body">
                        <div class="user-info">
                            <img src="https://picsum.photos/id/1083/100/100" alt="用户头像" class="avatar">
                            <div>
                                <div class="user-name">陈电影 - 影评人</div>
                                <div class="user-meta">匹配度 92% · 5个共同兴趣</div>
                            </div>
                        </div>
                        
                        <h3 class="content-title">年度最佳外语片盘点点与深度解析</h3>
                        <p class="content-desc">今年看了不下                        <p class="content-desc">今年看了超过150部外语电影，精选出10部最佳作品进行深度解析。从导演手法到叙事结构，从镜头语言到主题表达，寻找同样热爱电影的朋友一起讨论。</p>
                        
                        <div class="tags">
                            <span class="tag">电影</span>
                            <span class="tag">影评</span>
                            <span class="tag">外语片</span>
                            <span class="tag">电影分析</span>
                        </div>
                        
                        <div class="stats-actions">
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i> 3.8k
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i> 278
                                </div>
                            </div>
                            
                            <div class="d-flex gap-2">
                                <button class="action-btn" id="like6">
                                    <i class="far fa-heart"></i> 542
                                </button>
                                <button class="action-btn" id="save6">
                                    <i class="far fa-bookmark"></i> 收藏
                                </button>
                                <button class="connect-btn">
                                    <i class="fas fa-user-plus"></i> 加好友
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 分页 -->
        <nav aria-label="Page navigation">
            <ul class="pagination">
                <li class="page-item disabled">
                    <a class="page-link" href="#" tabindex="-1" aria-disabled="true">上一页</a>
                </li>
                <li class="page-item active"><a class="page-link" href="#">1</a></li>
                <li class="page-item"><a class="page-link" href="#">2</a></li>
                <li class="page-item"><a class="page-link" href="#">3</a></li>
                <li class="page-item">
                    <a class="page-link" href="#">下一页</a>
                </li>
            </ul>
        </nav>
    </div>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="row">
                <div class="col-md-4 footer-col">
                    <h3 class="footer-title">友趣</h3>
                    <p>友趣是一个基于兴趣的社交平台，帮助你找到志同道合的朋友，一起分享快乐，探索世界。</p>
                    <div class="social-links">
                        <a href="#"><i class="fab fa-weixin"></i></a>
                        <a href="#"><i class="fab fa-weibo"></i></a>
                        <a href="#"><i class="fab fa-qq"></i></a>
                        <a href="#"><i class="fab fa-instagram"></i></a>
                    </div>
                </div>
                
                <div class="col-md-2 footer-col">
                    <h3 class="footer-title">平台功能</h3>
                    <ul class="footer-links">
                        <li><a href="#">交友推荐</a></li>
                        <li><a href="#">兴趣小组</a></li>
                        <li><a href="#">活动中心</a></li>
                        <li><a href="#">兴趣测试</a></li>
                        <li><a href="#">话题讨论</a></li>
                    </ul>
                </div>
                
                <div class="col-md-2 footer-col">
                    <h3 class="footer-title">关于我们</h3>
                    <ul class="footer-links">
                        <li><a href="#">平台介绍</a></li>
                        <li><a href="#">团队成员</a></li>
                        <li><a href="#">加入我们</a></li>
                        <li><a href="#">联系方式</a></li>
                        <li><a href="#">用户反馈</a></li>
                    </ul>
                </div>
                
                <div class="col-md-4 footer-col">
                    <h3 class="footer-title">联系我们</h3>
                    <ul class="footer-links">
                        <li><i class="fas fa-envelope me-2"></i> contact@youqu.com</li>
                        <li><i class="fas fa-phone me-2"></i> 400-123-4567</li>
                        <li><i class="fas fa-map-marker-alt me-2"></i> 北京市朝阳区创意园区A座501</li>
                    </ul>
                    <div class="mt-3">
                        <button class="btn btn-primary">下载APP</button>
                    </div>
                </div>
            </div>
            
            <div class="copyright">
                &copy; 2023 友趣社交平台 版权所有 | 京ICP备12345678号
            </div>
        </div>
    </footer>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 布局切换功能
        const container = document.getElementById('recommendationsContainer');
        const gridBtn = document.getElementById('gridLayout');
        const listBtn = document.getElementById('listLayout');
        const compactBtn = document.getElementById('compactLayout');
        
        gridBtn.addEventListener('click', function() {
            container.className = 'recommendations grid-layout row';
            setActiveLayoutBtn(this);
        });
        
        listBtn.addEventListener('click', function() {
            container.className = 'recommendations list-layout row';
            setActiveLayoutBtn(this);
        });
        
        compactBtn.addEventListener('click', function() {
            container.className = 'recommendations compact-layout row';
            setActiveLayoutBtn(this);
        });
        
        function setActiveLayoutBtn(btn) {
            document.querySelectorAll('.layout-btn').forEach(b => {
                b.classList.remove('active');
            });
            btn.classList.add('active');
        }
        
        // 筛选标签切换
        document.querySelectorAll('.filter-tab').forEach(tab => {
            tab.addEventListener('click', function() {
                document.querySelectorAll('.filter-tab').forEach(t => {
                    t.classList.remove('active');
                });
                this.classList.add('active');
                
                // 这里可以添加筛选逻辑
            });
        });
        
        // 点赞功能
        for (let i = 1; i <= 6; i++) {
            document.getElementById(`like${i}`).addEventListener('click', function() {
                const icon = this.querySelector('i');
                let count = parseInt(this.textContent.trim());
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    count++;
                    this.classList.add('liked');
                } else {
                    // 取消点赞
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    count--;
                    this.classList.remove('liked');
                }
                
                this.innerHTML = `<i class="${icon.classList.value}"></i> ${count}`;
            });
        }
        
        // 收藏功能
        for (let i = 1; i <= 6; i++) {
            document.getElementById(`save${i}`).addEventListener('click', function() {
                const icon = this.querySelector('i');
                
                if (icon.classList.contains('far')) {
                    // 收藏
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.innerHTML = `<i class="${icon.classList.value}"></i> 已收藏`;
                    this.classList.add('saved');
                } else {
                    // 取消收藏
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.innerHTML = `<i class="${icon.classList.value}"></i> 收藏`;
                    this.classList.remove('saved');
                }
            });
        }
        
        // 加好友按钮功能
        document.querySelectorAll('.connect-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const originalText = this.innerHTML;
                this.innerHTML = '<i class="fas fa-check"></i> 已发送';
                this.disabled = true;
                this.style.backgroundColor = 'var(--success)';
                
                // 2秒后恢复原始状态（实际应用中可能不需要）
                setTimeout(() => {
                    this.innerHTML = originalText;
                    this.disabled = false;
                    this.style.backgroundColor = '';
                }, 2000);
            });
        });
    </script>
</body>
</html>
    
